﻿<%@ Page Language="c#" CodeBehind="RoleManage.aspx.cs" AutoEventWireup="false" Inherits="CIS.RoleManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <title>RoleManage</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <style type="text/css">
        @import url( css/ppt.css );
    </style>
    <script language="javascript" type="text/javascript">
        function window.onload() {
            var inputs = document.getElementsByTagName('INPUT');
            for (var i = 0; i < inputs.length; i++) {
                if (inputs[i].type == 'image') {
                    inputs[i].attachEvent("onclick", __confirm);
                }
            }
        }

        function __confirm() {
            if (confirm("确定删除该角色?")) {
                return true;
            }
            return false;
        }
    </script>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <table id="table1" cellpadding="0">
        <tr>
            <td>
                <table id="table2" cellpadding="0">
                    <tr>
                        <td>
                            <!--公告栏表格开始-->
                            <table id="table2" cellpadding="0">
                                <tr>
                                    <td>
                                        <asp:Image ID="iRoleManage" ImageUrl="images/title_RoleManage.jpg" runat="server">
                                        </asp:Image>
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                        <img src="images/title_right.jpg" alt="" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <table id="table1" cellpadding="0">
                                            <tr>
                                                <td>
                                                    <img src="images/table_c1_r1.jpg" alt="" />
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                    <img src="images/table_c3_r1.jpg" alt="" />
                                                </td>
                                                <td>
                                                    <img src="images/table_c4_r1.jpg" alt="" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <img src="images/table_c1_r3.jpg" alt="" />
                                                </td>
                                                <td colspan="3">
                                                    <!--此处填写内容-->
                                                    <asp:Label ID="lbArea" runat="server"></asp:Label><asp:DropDownList ID="AreaDdl"
                                                        runat="server" AutoPostBack="True">
                                                    </asp:DropDownList>
                                                    <br/>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="lbTitle" runat="server"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lbContent" runat="server"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lbInfoType" runat="server"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lbIsUMView" runat="server"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lbOperate" runat="server"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <asp:Repeater ID="rptRole" runat="server">
                                                            <ItemTemplate>
                                                                <tr>
                                                                    <td>
                                                                        &nbsp;
                                                                        <%#DataBinder.Eval(Container.DataItem,"RoleName")%>
                                                                    </td>
                                                                    <td>
                                                                        <%#DataBinder.Eval(Container.DataItem,"RoleDescr")%>
                                                                    </td>
                                                                    <td>
                                                                        <asp:Label runat="server" ID="label1">
																					<%#GetAuthInfo(DataBinder.Eval(Container.DataItem,"RoleId"))%>
                                                                        </asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <asp:Label runat="server" ID="Label2">
																					<%#(int)DataBinder.Eval(Container.DataItem,"IsUnmasterView")==1?"Yes":"No"%>
                                                                        </asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <asp:ImageButton ID="ibDelete" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"RoleId")%>'
                                                                            CommandName="delete" ImageUrl="images/icon_delete.gif"></asp:ImageButton>
                                                                        &nbsp;
                                                                        <asp:LinkButton ID="lbModify" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"RoleId")%>'
                                                                            CommandName="modify">
																					<%#GetStrInSetFile("lbEdit")%>
                                                                        </asp:LinkButton>
                                                                    </td>
                                                                </tr>
                                                            </ItemTemplate>
                                                        </asp:Repeater>
                                                        <tr>
                                                            <td colspan="5">
                                                                <table>
                                                                    <tr>
                                                                        <td>
                                                                            <asp:Label ID="lbRoleName" runat="server"></asp:Label>
                                                                        </td>
                                                                        <td colspan="4">
                                                                            <asp:TextBox ID="RoleNameTbx" runat="server"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            <asp:Label ID="lbdescript" runat="server"></asp:Label>
                                                                        </td>
                                                                        <td colspan="4">
                                                                            <asp:TextBox ID="RoleDescrTbx" runat="server" TextMode="MultiLine"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            <asp:Button ID="SaveBtn" runat="server" Text="Save"></asp:Button>
                                                                        </td>
                                                                        <td colspan="4">
                                                                            <p>
                                                                                <asp:Label ID="lbSetInfoAut" runat="server">
                                                                                    <asp:Label ID="lbSetAut" runat="server"></asp:Label>
                                                                                </asp:Label><br/>
                                                                                A&nbsp;
                                                                                <asp:DropDownList ID="InfoTypeADdl" runat="server">
                                                                                </asp:DropDownList>
                                                                                <br/>
                                                                                B&nbsp;
                                                                                <asp:DropDownList ID="InfoTypeBDdl" runat="server">
                                                                                </asp:DropDownList>
                                                                                <br/>
                                                                                C&nbsp;
                                                                                <asp:DropDownList ID="InfoTypeCDdl" runat="server">
                                                                                </asp:DropDownList>
                                                                                <br/>
                                                                                D&nbsp;
                                                                                <asp:DropDownList ID="InfoTypeDDdl" runat="server">
                                                                                </asp:DropDownList>
                                                                                <br/>
                                                                                <br/>
                                                                                <asp:Label ID="lbCheckAut" runat="server"></asp:Label><br/>
                                                                                <asp:DropDownList ID="CheckTypeDdl" runat="server">
                                                                                </asp:DropDownList>
                                                                                <br/>
                                                                                <br/>
                                                                                <asp:Label ID="lbUnmasterView" runat="server"></asp:Label>
                                                                                <br/>
                                                                                <asp:CheckBox ID="UnmasterViewChk" runat="server"></asp:CheckBox>
                                                                                <br/>
                                                                                <br/>
                                                                                <asp:Label ID="lbIsEdit" runat="server"></asp:Label><asp:CheckBox ID="EditChk" runat="server">
                                                                                </asp:CheckBox></p>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <!--此处填写内容-->
                                                </td>
                                                <td>
                                                    <img src="images/table_c4_r2.jpg" alt="" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <img src="images/table_c1_r4.jpg" alt="" />
                                                </td>
                                                <td>
                                                    <img src="images/table_c2_r4.jpg" alt="" />
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                    <img src="images/table_c4_r4.jpg" alt="" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                            <!--公告栏表格结束-->
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
